Skip to content

Update Job status display to actually use job status #10245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jnoordsij
Copy link
Contributor

@jnoordsij jnoordsij commented Jul 1, 2025

Fixes #6443 (or at least partially).

Currently the state indicator of jobs in the resource list (/#/job) always seems to be green on my end, with tooltip Running, even when the actual jobs have either failed or succeeded. This is somewhat confusing in terms of UX/UI.

This PR aims to update the job status to actually reflect the state of the job, matching with the available types I traced in the api module:

type JobStatusType string
const (
// JobStatusRunning means the job is still running.
JobStatusRunning JobStatusType = "Running"
// JobStatusComplete means the job has completed its execution.
JobStatusComplete JobStatusType = "Complete"
// JobStatusFailed means the job has failed its execution.
JobStatusFailed JobStatusType = "Failed"
)

Note: I have not yet been able to actually test this, hence this is still a draft. If there's already feedback on how to approach this, please let me know! Also feel free to take over/follow up on this.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 1, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jnoordsij
Once this PR has been reviewed and has the lgtm label, please assign floreks for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Job/Pod status icon color should better reflect their states
2 participants